function sd = MJD2serial(mjd)
%MJD2frac - Modified julian date to MATLAB serial date conversion
%
%       SD = MJD2serial(MJD)
%
% Let MJD be a modified julian date vector. This function computes the 
% corresponding vector of serial dates SD.
%
% See also date2gpsw, gpsw2serial, frac2MJD, MJD2frac, serial2frac, 
% frac2serial, serial2YMD, leapy.

% G. Teza, 2021

mjd = mjd(:);       % to have a column vector
mjd = double(mjd);
 
T = datetime(mjd,'convertfrom','modifiedjuliandate');

sd = datenum(T);